package com.android.namecard.entity;

import android.graphics.Bitmap;

public class Namecard {
	
	
	/**
	 * 构造方法
	 * @param namecardId   名片id
	 * @param name         名字
	 * @param career       职业
	 * @param company      公司
	 * @param address      地址
	 * @param email        电子邮箱
	 * @param phone        电话
	 * @param qq           qq
	 * @param msn          msn
	 * @param website      网址
	 * @param business     业务
	 * @param type         名片类型
	 * @param frontImage   名片正面图片
	 * @param backImage    名片背面图片
	 */
	public Namecard(String namecardId, String name, String career,
			String company, String address, String email, String phone,
			String qq, String msn, String website, String business,
			String type, Bitmap frontImage, Bitmap backImage) {
		this.namecardId = namecardId;
		this.name = name;
		this.career = career;
		this.company = company;
		this.address = address;
		this.email = email;
		this.phone = phone;
		this.qq = qq;
		this.msn = msn;
		this.website = website;
		this.business = business;
		this.type = type;
		this.frontImage = frontImage;
		this.backImage = backImage;
	}
	
	public Namecard() {
		// TODO Auto-generated constructor stub
	}

	public String encodeInfo() {
		// TODO Auto-generated method stub
		String encodeStr = name + SPLIT + career + SPLIT + company + SPLIT + address + SPLIT + email + SPLIT
							+ phone + SPLIT + qq + SPLIT + msn + SPLIT + website + SPLIT + business + SPLIT
							+ "type";
		return encodeStr;
	}
	
	public String getNamecardId() {
		return namecardId;
	}


	public void setNamecardId(String namecardId) {
		this.namecardId = namecardId;
	}


	public String getName() {
		return name;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	public String getCareer() {
		return career;
	}
	
	public void setCareer(String career) {
		this.career = career;
	}
	
	public String getCompany() {
		return company;
	}
	
	public void setCompany(String company) {
		this.company = company;
	}
	
	public String getPhone() {
		return phone;
	}
	
	public void setPhone(String phone) {
		this.phone = phone;
	}
	
	public String getEmail() {
		return email;
	}
	
	public void setEmail(String email) {
		this.email = email;
	}
	
	public String getWebsite() {
		return website;
	}
	
	public void setWebsite(String website) {
		this.website = website;
	}
	
	public String getAddress() {
		return address;
	}
	
	public void setAddress(String address) {
		this.address = address;
	}
	
	public String getBusiness() {
		return business;
	}
	
	public void setBusiness(String business) {
		this.business = business;
	}
	
	public String getType() {
		return type;
	}
	
	public void setType(String type) {
		this.type = type;
	}
	
	public Bitmap getFrontImage() {
		return frontImage;
	}
	
	public void setFrontImage(Bitmap frontImage) {
		this.frontImage = frontImage;
	}
	
	public Bitmap getBackImage() {
		return backImage;
	}
	
	public void setBackImage(Bitmap backImage) {
		this.backImage = backImage;
	}
	
	public String getQq() {
		return qq;
	}

	public void setQq(String qq) {
		this.qq = qq;
	}

	public String getMsn() {
		return msn;
	}

	public void setMsn(String msn) {
		this.msn = msn;
	}
	
	
	
	/****变量定义****/
	private String namecardId;       //名片id
	private String name;             //名字
	private String career;           //职业
	private String company;          //公司
	private String address;          //地址
	private String email;            //邮箱
	private String phone;            //电话
    private String qq;               //qq
    private String msn;              //msn
	private String website;          //网址
	private String business;         //业务
	private String type;             //名片类型
	private Bitmap frontImage;       //名片正面图
	private Bitmap backImage;        //名片背面图
	
	public static final String SPLIT = "|/";


}
